home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 50
/
Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso
/
Aminet
/
text
/
edit
/
tecoc-146.lha
/
inccbp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-05
|
934b
|
32 lines
/*****************************************************************************
IncCBp()
This function increments the command buffer pointer CBfPtr. It
checks whether incrementing the command buffer pointer will move the command
buffer pointer past the end of the command buffer.
*****************************************************************************/
#include "zport.h" /* define portability identifiers */
#include "tecoc.h" /* define general identifiers */
#include "defext.h" /* define external global variables */
#include "deferr.h" /* define identifiers for error messages */
DEFAULT IncCBP()
{
if (CBfPtr == CStEnd) { /* if end of command string */
if (MStTop < 0) { /* if not in a macro */
ErrUTC(); /* unterminated command */
return FAILURE;
}
return SUCCESS;
}
++CBfPtr;
if (TraceM) { /* if trace mode is on */
EchoIt(*CBfPtr); /* display the character */
}
return SUCCESS;
}